import Foundation
@objcMembers
open class FYKycInitResponse: FYBaseModel {
    public var data: FYKycInitResponseData?
}
@objcMembers
open class FYKycInitResponseData: FYBaseModel {
    public var kycId: FYKycIdentifier = .unknown
    public var kycItemList: [FYKycInitItem] = []
    public var kycType: String = ""
    public override func kj_didConvertToModel(from json: [String : Any]) {
        self.kycItemList.sort(by: { $0.itemSort < $1.itemSort })
    }
}
@objcMembers
open class FYKycInitItem: FYBaseModel {
    public var buttonList: [FYKycInitItemButton] = []
    public var isRequired: Int = 0
    public var itemCode: String = ""
    public var itemName: String = ""
    public var itemSort: Int = 0
    public var itemStatus: Int = 0
    public var itemType: FYKycInitItemType = .unknown
    public var regularExpression: String = ""
    public override func kj_didConvertToModel(from json: [String : Any]) {
        self.buttonList.sort(by: { $0.buttonSort < $1.buttonSort })
    }
}
@objcMembers
open class FYKycInitItemButton: FYBaseModel {
    public var buttonKey: String = ""
    public var buttonLabel: String = ""
    public var buttonSort: Int = 0
    public override func sheetActionTitle() -> String {
        return self.buttonLabel
    }
}
